package com.xio.cloud.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import lombok.Data;

/**
 * @Author: xio
 * @Description: ${Description}
 * @Date: 2021/3/31 20:55
 */
/**
    * 账户表
    */
@Data
@TableName(value = "account")
public class Account {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 总额度
     */
    @TableField(value = "total")
    private BigDecimal total;

    /**
     * 已用余额
     */
    @TableField(value = "used")
    private BigDecimal used;

    /**
     * 剩余可用额度
     */
    @TableField(value = "residue")
    private BigDecimal residue;
}